package cn.wolfcode.luowowo.search.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Getter
@Setter
public class SearchQueryObject extends QueryObject {

    //查询所有
    public static final int ALL = -1;
    //查询目的地相关
    public static final int DEST = 0;
    //查询攻略相关
    public static final int STRATEGY= 1;
    //查询游记相关
    public static final int TRAVEL =2;
    //查询用户相关
    public static final int USERINFO =3;


    private Long type;
    private String keyword;

//
//    public String getKeyword(){
//        return StringUtils.hasLength(keyword)? keyword:null;
//    }

}
